/**
 * Description:
 * Class Name:Fruit
 * Date:2022/4/17 13:39
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第14章_Annotation注解._14_1_基本注解._14_1_1_限定重写父类的方法_Override;

public class Fruit {
    public void info(){
        System.out.println("a function in Fruit...");
    }
}

class Apple extends Fruit{
    @Override
    public void info(){
        System.out.println("Apple overrode Fruit's info function...");
    }
}